<?php
$this->breadcrumbs = array(
	'Leaves'=>array('index'),
	'Create',
);

$this->menu = array(
	array('label'=>'List Leave', 'url'=>array('index')),
	array('label'=>'Manage Leave', 'url'=>array('admin')),
);
?>

<h1>Create Leave</h1>

<?php
echo $this->renderPartial('_form', array('model'=>$model));
?>

<?php
$data = array(
	':employeeId'=>CHtml::activeId($model, 'employeeId'),
	':debit'=>CHtml::activeId($model, 'debit'),
	':name'=>CHtml::activeId($model, 'name'),
	':annualy'=>Leave::NAME_ANNUALY,
	':balance'=>CHtml::activeId($model, 'balance'),
	':quotaUrl'=>CHtml::normalizeUrl(array('_getQuota')),
	':balanceUrl'=>CHtml::normalizeUrl(array('_getBalance')),
);
Yii::app()->clientScript->registerScriptContent(
	'create', 'application.views.leave.create', CClientScript::POS_READY, $data
);
?>